<?php 
	class IndexAction extends Action
	{
		public function index()
		{   
			$strs=file_get_contents("http://localhost/TP/index.php/Index/index.html");
			//$reg="/<meta/"
			var_dump($strs);exit;
			$malisInfo = M()->query("select * from mail_info");
			$this->assign("malisInfo",$malisInfo);
			$this->display();
		}
		public function delete()
		{
			$ID = $_GET['ID'];
			$result = M()->execute("delete from mail_info where ID={$ID}");
			if($result > 0)
			{
				$this->redirect("Index/index",null,3,"删除成功！");
			}else
			{
				$this->redirect("Index/index",null,3,"删除失败！");
			}
		}
	}